package com.hxci.demo.impl;

import com.hxci.demo.UserDao;
import org.springframework.stereotype.Service;

@Service
public class UserDaoImpl implements UserDao {
    @Override
    public void inerst() {
        System.out.println("方法内部功能:新增用户");
    }

    @Override
    public void delete() {
        System.out.println("方法内部功能:删除用户");

    }

    @Override
    public void update() throws Exception {
        System.out.println("方法内部功能:更新用户");
        throw new Exception("抛出错误");
    }

    @Override
    public void select() {
        System.out.println("方法内部功能:查找用户");

    }
}
